package com.itheima.service;

import com.itheima.bean.Order;
import com.itheima.bean.User;
import com.itheima.exception.UserException;

import java.io.IOException;
import java.util.List;

// 订单服务接口
public interface OrderService {
    // 根据订单id查询订单
    public Order viewOrder(String orderId) throws UserException, IOException;
    //下单操作
    public String placeOrder(User user, String restaurantName, List<String>dishNames) throws Exception;
}
